[−][src]Crate market
Infrastructure for producers and consumers in a market.
A market is a stock of goods that can have agents act upon it. An agent can be either a Producer
that stores goods into the market or a Consumer
that retrieves goods from the market. The important thing to note about agents is that they are immutable during their respective actions.
Modules
channel | Implements |
io | Implements |
process | Implements |
queue | |
sync | |
thread | Implements |
vec |
Structs
InsufficientStockFailure | The |
Enums
ConsumeFailure | The typical |
ProduceFailure | The typical |
Traits
Consumer | Retrieves goods from a market. |
Failure | Specifies a failure to successfully complete an action. |
Producer | Specifies the storage of goods into a market. |
Derive Macros
ConsumeFault | Makes type able to be T in ConsumeFailure |
ProduceFault | Makes type able to be T in ProduceFailure |